//
//  Date+Extension.swift
//

import UIKit

extension Date {
    
    func timeStamp() -> String {
        let formatter = DateFormatter()
        formatter.dateStyle = .medium
        formatter.timeStyle = .short
        formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        return "\(timeIntervalSince1970 * 1000)".prefix(".")
    }
}
